package com.guozcc.bootweb.platform.dto.response;

import com.guozcc.bootweb.platform.common.DateUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(value = "Head",description = "响应头信息")
public class Head {
    @ApiModelProperty(value = "响应编码",dataType = "java.lang.String",required = true)
    private String errcode /*= TradeErrorCode.TRADE_SUCCESS.getErrcode()*/;
    @ApiModelProperty(value = "响应描述",dataType = "java.lang.String",required = false)
    private String errmsg /*= TradeErrorCode.TRADE_SUCCESS.getErrmsg()*/;;
    @ApiModelProperty(value = "响应时间",dataType = "java.lang.String",required = false)
    private String tradetime = DateUtils.getCurrentDateStr("");

    public Head(String errcode) {
        this.errcode = errcode;
    }

    public Head(String errcode, String errmsg) {
        this.errcode = errcode;
        this.errmsg = errmsg;
    }

    public String getErrcode() {
        return errcode;
    }

    public void setErrcode(String errcode) {
        this.errcode = errcode;
    }

    public String getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }
}
